//
//  QueryDigitalLotteryIssueOperation.m
//  PlayBall
//
//  Created by Edward Zhang on 12-6-4.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "JddQueryDigitalLotteryIssueOperation.h"

@implementation JddQueryDigitalLotteryIssueOperation

@synthesize lotteryTypeId;

- (void)main{
    JddNetDataCommunication *netDataCommunication = [[JddNetDataCommunication alloc] init];
    NSString *bodyString = [JddParameterBuilder queryDigitalLotteryIssueOfTypeId:self.lotteryTypeId];    
    NSData *dataLotteryIssue = [netDataCommunication requestDataByPostBodyData:[bodyString dataUsingEncoding:NSUTF8StringEncoding]];
    [((NSObject*)self.delegate) performSelectorOnMainThread:@selector(QueryDigitalLotteryIssueOperationResult:) withObject:dataLotteryIssue waitUntilDone:NO];
}

@end
